package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.LevelRecordEntity;
import yf.mall.vo.LevelRecordVo;

                                        
/**
 * 级别记录实体
 * 表名 level_record
 *
 * 
 * 
 * @date Tue Apr 25 09:50:33 CST 2023
 */
@Data
public class LevelRecordDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //变更用户
            @ExcelProperty("变更用户")
            private Long userId;
        
                        //用户名
            @ExcelProperty("用户名")
            private String userName;
        
                        //用户编号
            @ExcelProperty("用户编号")
            private String userCode;
        
                        //当前级别ID
            @ExcelProperty("当前级别ID")
            private Long nowLevelId;
        
                        //当前级别
            @ExcelProperty("当前级别")
            private String nowLevel;
        
                        //级别
            @ExcelProperty("级别")
            private String oldLevel;
        
                        //旧级别ID
            @ExcelProperty("旧级别ID")
            private Long oldLevelId;
        
                        //变更原因
            @ExcelProperty("变更原因")
            private String remark;
        
                        //变更时间
            @ExcelProperty("变更时间")
            private Date time;
        
    
    public LevelRecordDown() {

    }

    public LevelRecordDown(LevelRecordVo vo) {
        LevelRecordEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setUserId(entity.getUserId());
            
                                    this.setUserName(entity.getUserName());
            
                                    this.setUserCode(entity.getUserCode());
            
                                    this.setNowLevelId(entity.getNowLevelId());
            
                                    this.setNowLevel(entity.getNowLevel());
            
                                    this.setOldLevel(entity.getOldLevel());
            
                                    this.setOldLevelId(entity.getOldLevelId());
            
                                    this.setRemark(entity.getRemark());
            
                                    this.setTime(entity.getTime());
            
            }


}
